package com.cqtd.common.dict.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/*
 * @Entity declares the class as an entity (i.e. a persistent POJO class), @Id declares the identifier property of this entity. 
 */

@Entity
@Table(name = "cq_system_dicttype")
public class CqSystemDictType implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */
	@Id
	// @GeneratedValue(strategy = GenerationType.AUTO)
	@javax.persistence.GeneratedValue(generator = "generator")
	@org.hibernate.annotations.GenericGenerator(name = "generator", strategy = "increment")
		private int id;   
	  	
		private String dictId; // 字典ID 

	    private String dictCode; //字典编码

	    private String dictName;  //字典名称

	    private String moduleName; // 模块名称

	    private String dictRemark; //备注

	    private String parentDictId;//父节点ID

	    private String leaf;//叶子节点标识

	    private String deleted;// 是否删除
	    
	    private String sort;//排序
	    
	    public int getId() {
			return id;
		}
	    
		public void setId(int id) {
			this.id = id;
		}
		
		public String getSort() {
			return sort;
		}
		
		@Column(length = 10,nullable = false)
		public void setSort(String sort) {
			this.sort = sort;
		}

		public String getDeleted() {
			return deleted;
		}
		
		@Column(length = 10,nullable = false)
		public void setDeleted(String deleted) {
			this.deleted = deleted;
		}

		public String getLeaf() {
			return leaf;
		}
		
		@Column(length = 10,nullable = false)
		public void setLeaf(String leaf) {
			this.leaf = leaf;
		}

		public String getDictId() {
			return dictId;
		}
		@Column(length = 50,nullable = false)
		public void setDictId(String dictId) {
			this.dictId = dictId;
		}

		public String getDictCode() {
			return dictCode;
		}
		@Column(length = 50,nullable = false)
		public void setDictCode(String dictCode) {
			this.dictCode = dictCode;
		}

		public String getDictName() {
			return dictName;
		}
		@Column(length = 50,nullable = false)
		public void setDictName(String dictName) {
			this.dictName = dictName;
		}

		public String getModuleName() {
			return moduleName;
		}
		@Column(length = 50,nullable = false)
		public void setModuleName(String moduleName) {
			this.moduleName = moduleName;
		}
		
		public String getDictRemark() {
			return dictRemark;
		}
		@Column(length = 200,nullable = false)
		public void setDictRemark(String dictRemark) {
			this.dictRemark = dictRemark;
		}

		public String getParentDictId() {
			return parentDictId;
		}
		@Column(length = 50,nullable = false)
		public void setParentDictId(String parentDictId) {
			this.parentDictId = parentDictId;
		}

		


	

}
